package com.wanmait.baohan;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
//扫描mapper创建bean，否则不能使用
@MapperScan("com.wanmait.baohan.mapper")
//开启ehcache缓存
@EnableCaching
//扫描过滤器监听器servlet创建bean，否则不能使用
@ServletComponentScan()
//开启定时任务
@EnableScheduling
public class BaohanApplication {

    public static void main(String[] args) {
        SpringApplication.run(BaohanApplication.class, args);
    }

}
